/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-04-03
 * Time: 9:48
 */
class SingletonLazy{
    private static SingletonLazy instance = null;
    Object locker =new Object();
    public SingletonLazy getInstance() {
        synchronized (locker) {
            if (instance == null) {
                instance = new SingletonLazy();
            }
            return instance;
        }
    }
    private SingletonLazy(){

    }
}
public class Demo2 {
    public static void main(String[] args) {

    }
}
